
<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'loginForm',
    'enableClientValidation' => true,
    'htmlOptions'=>array('class'=>'form-horizontal')
        ));
?>
<div class="form-row row-fluid">
  <div class="span12">
    <div class="row-fluid">
      <label class="form-label span12" for="username">
        Username:
        <span class="icon16 icomoon-icon-user-3 right gray marginR10"></span>
      </label>
      <!--<input class="span12" id="username" type="text" name="username" value="" />-->
      <?php echo $form->textField($model, 'username',array('class'=>'span12')); ?>
    </div>
  </div>
</div>

<div class="form-row row-fluid">
  <div class="span12">
    <div class="row-fluid">
      <label class="form-label span12" for="password">
        Password:
        <span class="icon16 icomoon-icon-locked right gray marginR10"></span>
        <span class="forgot"><a href="#">Forgot your password?</a></span>
      </label>
      <!--<input class="span12" id="password" type="password" name="password" value="" />-->
      <?php echo $form->passwordField($model, 'password', array('class'=>'span12')); ?>
    </div>
  </div>
</div>
<div class="form-row row-fluid">                       
  <div class="span12">
    <div class="row-fluid">
      <div class="form-actions">
        <div class="span12 controls">
          <!--<input type="checkbox" id="keepLoged" value="Value" class="styled" name="logged" />-->
          <?php echo $form->checkBox($model,'rememberMe',array('id'=>'chkRememberMe')); ?>
          <?php echo $form->error($model,'rememberMe'); ?>Keep me logged in
          <button type="submit" class="btn btn-info left" id="loginBtn"><span class="icon16 icomoon-icon-enter white"></span> Login</button>
        </div>
      </div>
    </div>
  </div> 
</div>
<?php $this->endWidget(); ?>
